package com.zeng.generate.code.other;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author zeng
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user_base")
public class UserBase {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer status;

    /**
     * 用户ID
     */
    private String userCode;

    /**
     * qrCode
     */
    private String qrCode;

    /**
     * 组织ID
     */
    private String organizationId;

    /**
     * 用户部门ID
     */
    private Long departmentId;

    private Long departmentAId;

    private Long regionId;

    private Long visitorId;

    private String email;
    /**
     * 用户编号
     */
    private String staffNo;
    /**
     * 用户姓名
     */
    private String username;

    private String companyName;
    /**
     * 1正式用户 3臨時工 4訪客
     */
    private Integer personnelState;

    /**
     * 别名
     */
    private String aliasName;

    private String imgPath;

    private String phone;

    private String extra;

    private Date birthday;

    private Integer sex;

    /**
     * 身份证号
     */
    private String identityNo;
    /**
     * 默认0，1=已删除
     */
    private Integer deleted;

    private Date submitTime;

    private Date failureTime;

    /**
     * 默认0，0有效，1失效
     */
    private Integer effectiveStatus;
    /**
     * 创建人
     */
    private Long createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新人
     */
    private Long updateBy;
    /**
     * 更新时间
     */
    private Date updateTime;

}
